package com.objects.demo01;

public class TestTwo {
    public static void main(String[] args) {

        Life life = new Life();
        System.out.println("对象的字符串表现形式 "+life.toString());

        System.out.println("============");
        Student s1 = new Student();
        Student s2 = new Student();
        // 判断两个对象是否相等
        System.out.println(s1.equals(s2)); //  false 因为堆中的地址不同

        System.out.println(s1 == s2); // false


    }
}
